import request from '@/util/request'
import {clientId} from "@/util/config"
export default {
    // 获取token
    async gettoken(data) {
        let res = await request.zhycget('/oauth/code/' + data.code + "/" + clientId + "?from=" + data.state)
        return res
    },
    //    获取code
    async getcode() {
        let res = await request.zhycget('/oauth/ssoUrl/' + clientId + "?from=http://" + window.location.host + "/login")
        return res
    }
}
